<?xml version='1.0' encoding='ISO-8859-1' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"   
      xmlns:jb="http://java.sun.com/jsf/composite/componentes"
      xmlns:p="http://primefaces.org/ui">

    <SCRIPT language="JavaScript" type="text/javascript">
                   
        function handleRequest(xhr, status, args) {                     
            if(args.validationFailed || !args.CallbackParam) {  
     
            } else {                              
                carDialogDeta.hide();  
                jQuery('#btnGuardarDetalle').fadeOut();  
            }  
        }  
    </SCRIPT>
    <h:form onsubmit="return checkSubmit();"  id="frmDetalle">
        <h:panelGrid id="pgFormDtoDeta"   frame="box">
            <h:panelGrid  columns="4" cellpadding="4">
                
                <h:outputLabel for="itDescripcion" styleClass="label" value="#{i18n['form.control.periodico.descripcion']}"/>
                <p:inputText id="itDescripcion" label="#{i18n['form.control.periodico.descripcion']}"  maxlength="200"
                             value="#{controlPeriodicoMBean.detaDto.descripcion}"  readonly="#{sessionMBean.accionDetalle == applicationMBean.ver}"
                             required="true" size="60" styleClass="txtCampoObligatorio">
                    <f:validateLength maximum="200" minimum="1" />
                </p:inputText>
                
                <h:outputLabel for="itDescripcionCorta" styleClass="label" value="#{i18n['form.control.periodico.descripcion.corta']}"/>
                <p:inputText id="itDescripcionCorta" label="#{i18n['form.control.periodico.descripcion']}"  maxlength="200"
                             value="#{controlPeriodicoMBean.detaDto.descripcionCorta}"  readonly="#{sessionMBean.accionDetalle == applicationMBean.ver}"
                             required="true" size="15" styleClass="txtCampoObligatorio">
                    <f:validateLength maximum="200" minimum="1" />
                </p:inputText>
                
                <h:outputLabel for="itDias" value="#{i18n['form.control.periodico.dias']}" styleClass="label"/>
                <p:inputText id="itDias" label="#{i18n['form.control.periodico.dias']}" style="#{applicationMBean.estiloObligatorio}"
                             value="#{controlPeriodicoMBean.detaDto.dias}"  readonly="#{sessionMBean.accionDetalle == applicationMBean.ver}"
                             onkeypress="return fn_validaTecla('decimal',this)"
                             required="true" size="10">
                    <f:validateLength minimum="1" maximum="9"/>
                    <f:convertNumber pattern="#{applicationMBean.formatoMontos}"/>
                </p:inputText>
                
                <h:outputLabel styleClass="label" value="#{i18n['general.label.activo']}"/>
                <p:selectBooleanCheckbox value="#{controlPeriodicoMBean.detaDto.estado}"  style="#{applicationMBean.estilo}"  disabled="#{sessionMBean.accionDetalle == applicationMBean.ver}"/>
                
            </h:panelGrid>
            
        
        <p:panel id="pnlAcciones">
            <h:panelGrid columns="10">
                <p:commandButton id="btnGuardarDetalle" update=":msjDialogDeta,:frmPrincipal:pnlPrincipalDeta,:msgs" 
                                 title="#{i18n['general.button.guardar.tip']}"
                                 style="#{applicationMBean.estilosBtnGuardar}"
                                 ajax="true"                                 
                                 icon="ui-icon ui-icon-disk" rendered="#{sessionMBean.accionDetalle != applicationMBean.ver}"
                                 value="#{i18n['general.button.guardar']}" 
                                 action="#{controlPeriodicoMBean.guardarDetalles}"
                                 oncomplete="handleRequest(xhr, status, args);"
                                 >
                </p:commandButton>
            </h:panelGrid>
        </p:panel>
        </h:panelGrid>  
    </h:form>
</html>